<%@ taglib uri="/myTLD" prefix="pizza" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<title>ABC-PIZZA / Kies een pizza</title>
		<link rel="stylesheet" type="text/css" href="screen.css" />
	</head>
	<body>
		<div id="content">
			<h1>ABC-PIZZA / Kies een pizza</h1>
			
			<p class="error">${requestScope.error}</p>
			<p class="welcome">${requestScope.pb.welcome}</p>
			
			<form method="post" action="pizza">
				<table>
					<tr><td>Pizza</td><td>${requestScope.pb.select}</td></tr>
					<tr><td></td><td><input type="submit" value="Volgende &raquo;" /></td></tr>
				</table>
			</form>
			
			<h2>Eigen pizza samenstellen</h2>
			<form method="post" action="pizza">
				<div>
					<input type="hidden" name="ingredients" value="true" />
			  		  <c:forEach var="ingredient" items="${requestScope.ingredients}">
					    <pizza:Ingredient name="${ingredient}" />
					  </c:forEach>
				</div>
				<input type="submit" value="Volgende &raquo;" />
			</form>
		</div>
	</body>
</html>